package com.jk.isense.auth.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jk.isense.core.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * <p>
 * 用户信息表
 * </p>
 *
 * @author fengshuonan
 * @since 2018-01-09
 */
@Data
@ToString(callSuper = true)
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@TableName("user")
public class User extends BaseEntity<User> {

    private static final long serialVersionUID = 1L;

    /**
     * 账号
     */
    private String username;
    /**
     * 密码
     */
    private String password;
    /**
     * 密码盐
     */
    private String salt;
    /**
     * 电话号码
     */
    private String telephone;
    /**
     * 电子邮件
     */
    private String email;
    /**
     * 头像地址
     */
    private String avatar;
    /**
     * 性别: F-女；M-男
     */
    private String sex;

    /**
     * 用户姓名
     */
    private String fullName;

    @TableField(exist = false)
    private List<String> roles;

}
